﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 平面法向量计算器
{
    internal class Vector
    {
        public Vector() { }
        public Vector(double x, double y, double z) {
            this.X = x;this.Y = y;this.Z = z;
        }
        public Vector (double x1,double x2,double y1,double y2,double z1,double z2) {
            this.X = x2 - x1; this.Y = y2 - y1; this.Z = z2 - z1;
        }

        private double _x;
        private double _y;
        private double _z;
        public double X { get { return _x; } set { _x = value; } }
        public double Y { get { return _y; } set { _y = value; } }
        public double Z { get { return _z;} set { _z = value; } }

        public double GetLength()
        {
            return Math.Sqrt( X*X + Y*Y + Z*Z );
        }
    }
}
